#include <arch/arm.h>

int get_cpu_architecture(void)
{       
    int cpu_arch;
	unsigned int cpuid_id;

	cpuid_id = get_cpuid_id();
    
	if ((cpuid_id & 0x000f0000) == 0x00020000) {
		cpu_arch = CPU_ARCH_ARMv4T;
	} else if ((cpuid_id & 0x000f0000) == 0x00060000) {
		cpu_arch = CPU_ARCH_ARMv5TEJ;
	} else {
		cpu_arch = CPU_ARCH_UNKNOWN;
	}	

    return cpu_arch;
}

